import request from '@/utils/request'

// 查询劳务费列表
export function listLabor(query) {
  return request({
    url: '/system/labor/list',
    method: 'get',
    params: query
  })
}

// 查询劳务费详细
export function getLabor(id) {
  return request({
    url: '/system/labor/' + id,
    method: 'get'
  })
}

// 新增劳务费
export function addLabor(data) {
  return request({
    url: '/system/labor',
    method: 'post',
    data: data
  })
}

// 修改劳务费
export function updateLabor(data) {
  return request({
    url: '/system/labor',
    method: 'put',
    data: data
  })
}

// 删除劳务费
export function delLabor(id) {
  return request({
    url: '/system/labor/' + id,
    method: 'delete'
  })
}
